package com.haoji.upload.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Transient;
import java.io.Serializable;

/**
 * 分页请求对象
 * 
 * @author xiaolei
 *
 */
@ApiModel(value = "Page", description = "分页请求对象")
public class Page implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 4802542293232520871L;

    // 当前页
    @Transient
    @ApiModelProperty(value = "页码")
    private int pageNum = 1;
    // 每页的数量
    @Transient
    @ApiModelProperty(value = "分页大小")
    private int pageSize = 10;
    // 排序（格式：XXXX字段 DESC/ASC）
    @Transient
    @ApiModelProperty(value = "排序（格式：XXXX字段 DESC/ASC）")
    private String orderBy;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }
}
